//
//  Bullet.m
//  Tank For IPhone
//
//  Created by 奕 朱 on 11-3-2.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import "Bullet.h"
#import "BulletMoveListener.h"

@class Tank;


@implementation Bullet
@synthesize tank;

- (id) init: (Tank *) _tank {
	self = [super init];
	if (self != nil) {
		self.tank = _tank;
		self.moveListener = [[BulletMoveListener alloc] init];
	}
	return self;
}

- (void) draw:(CGContextRef)context {
	
	UIColor *color = [UIColor blackColor];
	
	CGContextSetStrokeColorWithColor(context, color.CGColor);
	CGContextSetFillColorWithColor(context, color.CGColor);
	
	CGContextAddRect(context, CGRectMake(x, y, 5, 5));
	
	
	CGContextDrawPath(context, kCGPathFillStroke);
	
}

@end
